import sys
from Action import *
from World import *
from Brain import *

world = World()
brain = Brain()

# Init state and action
stateTp = None
actionT = None

while True:
  stateT = world.GetState()
  actionTn = brain.GetAction(stateT, ActionT, stateTp)
  stateTp = brain.GetPredictedState()
  world.Implement(actionTn)
  actionT = actionTn
